-- GENERATED SPELL FOR [Wily Fey Dragon] --


function spell0_4017(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(17630,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4017', 611, 1)
end

function Sorts_4017(pUnit, Event)
local choix_sorts_4017 = math.random(0, 0)
if choix_sorts_4017 == 0 then
pUnit:RegisterEvent('spell0_4017', 1, 1)
end
end

function mob4017_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4017', math.random(1500, 3000), 1)
end

function mob4017_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4017_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4017_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4017, 1, 'mob4017_Action')
RegisterUnitEvent(4017, 2, 'mob4017_Leave')
RegisterUnitEvent(4017, 3, 'mob4017_Kill')
RegisterUnitEvent(4017, 4, 'mob4017_Die')
